<%@page import="qingke.mybatis.pojo.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	Object obj = session.getAttribute("user");
	User user = null;
	if (obj != null) {
		if (obj instanceof User) {
			user = (User) obj;
		}
	}
%>
<div class="person-top-kuang">
	<div class="person-yan"></div>
	<div class="person-top-ziti">
		<div class="person-top-left">
			<a><img src="image/loge.jpg"></a>
		</div>
		<div class="person-top-left">
			<ul>
				<li><a href="javascript:void(0);" class="bootm">个人中心</a></li>
				<li><a href="/bishe">首页</a></li>
			</ul>
		</div>
		<div class="person-top-right">
			<ul>
				<li class="person-top-right-ul-li"><a href="index.jsp">退出</a></li>
				<li class="person-top-right-ul-li"><a href="login.jsp">切换用户</a></li>
				<li class="person-top-right-welcme"><p>
						<%
							if (user != null) {
						%> 欢迎<%=user.getName()%>！ <%
							}
						%>
				</p></li>

			</ul>
		</div>
	</div>
</div>

